<?php defined('DML') or die("Access locked");

header("Content-type: text/html; charset=utf-8");

if(!file_exists(PATH.DS.'config.php')){
   if(file_exists(PATH.DS.'install.php')){
      header("location: install.php");
   }else{
      echo "Не найден файл install.php. ";
      exit();
   }
}

if(file_exists(PATH.DS.'install.php') || is_dir(PATH.DS.'install')){
	echo "Вы не удалили файл install.php и папку install.";
	exit();
}

define('BASEHREF', 'http://'.$_SERVER['SERVER_NAME'].'/');

include PATH.DS.'modules'.DS.'modAuth'.DS.'login.php';

include PATH.DS.'config.php';
include PATH.DS.'includes'.DS.'actions.php';
include PATH.DS.'class'.DS.'dmlMySQLClass.php';
include PATH.DS.'class'.DS.'TemplateClass.php';
include PATH.DS.'class'.DS.'PageNavigation.php';

$getmod = "";
if(isset($_GET['mod'])){
   $getmod = $_GET['mod'];
}
$act = new Actions($getmod);
?>
